<h1>User Report Generator</h1>

<div style="text-align: center;">
	<h2>Please Select a User</h2>
	<% form_tag( :controller => 'reports', :action => 'user' ) do -%>
		<%= select_tag :id, options_from_collection_for_select(@users, :id, :display_name) %>
		<%= submit_tag 'Generate' %>
	<% end %>
</div>

<% if @user %>
	<h2>Report for <%= @user.display_name %></h2>
	<%= render :partial => 'user_report' %>
<% end %>